package com.neighbor.neighborhoodadmin.service.impl;

import com.neighbor.neighborhoodadmin.pojo.MallOrders;
import com.neighbor.neighborhoodadmin.dao.IMallOrdersDao;
import com.neighbor.neighborhoodadmin.service.IMallOrdersService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 商城兑换订单表 服务实现类
 * </p>
 *
 * @author song
 * @since 2025-09-22 09:11:23
 */
@Service
public class MallOrdersServiceImpl extends ServiceImpl<IMallOrdersDao, MallOrders> implements IMallOrdersService {
    @Autowired
    private IMallOrdersDao mallOrdersDao;
    @Override
    public List<MallOrders> orders(Integer start, Integer limit,String keyword, Integer status) {
        return mallOrdersDao.orders(start, limit, keyword, status);
    }

    @Override
    public Integer updateStatusById(Integer id, Integer status) {
        return mallOrdersDao.updateStatusById(id,status);
    }

    @Override
    public Integer countOrders(String keyword, Integer status) {
        return mallOrdersDao.countOrders(keyword,status);
    }
}
